import java.util.Arrays;

public class HomeWorkTest04 {
    public static void main(String[] args) {
        String[] arr=new String[]{"a","b","c"};
        int[] arr1={1,2,3};
        int[] arr2=arr1;
        for(int i=0;i<arr.length;i++){
            System.out.println("arr:"+arr[i]);
        }
    
    for (String str:arr){
        System.out.println("str:"+str);
    }
    int[] arrR=new int[10];
    for (int i=0;i<arrR.length;i++){
        int r=(int)(Math.random()*100+1);
        arrR[i]=r;
    }
    System.out.println("随机数组："+Arrays.toString(arrR));


    
    String[] s={"A","B","a","b","1","2","3"};
    String[] codeStrings=new String[4];
    for(int i=0;i<codeStrings.length;i++){
        int index=(int)(Math.random()*((s.length+1)));
        codeStrings[i]=s[index];
    }
    System.out.println("验证码："+Arrays.toString(codeStrings));

    char[] data=new char[62];
    //存放所有大写字母
    char c='A';
    for (int i=0;i<26;i++){
        data[i]=c++;
        System.out.println("data[i]:"+data[i]);
        
    }
}
}
